/*
	Copyright (C) 2009 jungil Han <jungil.Han@gmail.com>

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __MKKEYBOARDDIALOG_H__
#define __MKKEYBOARDDIALOG_H__

#include <QButtonGroup>

#include "../Base/mkBase.h"
#include "../Base/Dialog/mkDialog.h"
#include "../Base/Button/mkButton.h"

class mkKeyboardDialog : public mkDialog {
	Q_OBJECT
		
public:
	mkKeyboardDialog( IN QWidget *a_pParent = 0, IN Qt::WindowFlags a_eFlags = 0 );
	virtual ~mkKeyboardDialog();

	void SetToggle( IN QString a_strText );
	
protected:
	virtual void OnInitDialog();

	virtual void keyPressEvent( QKeyEvent *a_pEvent );
	virtual void showEvent( QShowEvent *a_pEvent );
	virtual void closeEvent( QCloseEvent *a_pEvent );
	
	void SavePosition();
	
protected slots:
	void SlotOKClicked();
	void SlotCancelClicked();

signals:
	void SigUpdateKeyInfo( QString a_strSystemKeyText, QString a_strNonSystemText);
	
private:
	QButtonGroup *m_pNonSystemButtonGroup;
	QButtonGroup *m_pSystemButtonGroup;

	int m_nPosX;
	int m_nPosY;
};

#endif
